package cn.wolfcode.luowowo.acticle.service;


import cn.wolfcode.luowowo.acticle.domain.QuestionAndAnswerComment;
import cn.wolfcode.luowowo.acticle.query.QuestionAndAnswerCommentQuery;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * 问答评论服务
 */
public interface IQuestionAndAnswerCommentService {

    /**
     * 分页
     * @param qo
     * @return
     */
    PageInfo query(QuestionAndAnswerCommentQuery qo);


    /**
     * 查单个
     * @param id
     * @return
     */
    QuestionAndAnswerComment get(Long id);


    /**
     * 添加
     * @param questionAndAnswerComment
     */
    void save(QuestionAndAnswerComment questionAndAnswerComment,Long toId,Long replyId);

    /**
     * 查所有
     * @return
     */
    List<QuestionAndAnswerComment> list();


    /**
     * 查询第一级回答
     * @param id
     * @return
     */
    List<QuestionAndAnswerComment> queryFirstLevelList(Long id);
}
